@csrf
<div class="layui-row">
    <div class="layui-form-item">
        <label for="name" class="layui-form-label">名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" class="layui-input" value="{{$station->name??''}}">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="code" class="layui-form-label">编码</label>
        <div class="layui-input-block">
            <input type="text" name="code" class="layui-input" value="{{$station->code??''}}" placeholder="">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="remark" class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" name="remark" class="layui-input" value="{{$station->remark??''}}" placeholder="">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="types" class="layui-form-label">所属类别</label>
        <div class="layui-input-block">
            <ul id="typeTree" data-id="0" class="dtree"></ul>
            <input type="hidden" name="types" id="types" value="{{$station->types??''}}">
        </div>
    </div>
    <div class="layui-form-item">
        <label for="status" class="layui-form-label">是否有效</label>
        <div class="layui-input-block">
            <input type="hidden" name="status" value="0">
            <input type="checkbox" name="status" lay-skin="switch" lay-text="有效|无效" value="1"
                {{$station->status=='1'?'checked':''}}>
        </div>
    </div>
</div>
